#import "JuggleNebulaCell.h"


@implementation JuggleNebulaCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
	self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
	if (self) {

		self.selectionStyle = UITableViewCellSelectionStyleNone;
		//self.contentView.backgroundColor = UIColor.whiteColor;

		//: 初始化UI布局
		[self thriveLuminousInitUIKit];
	}
	return self;
}

- (void)setOasisUpliftReverie:(JuggleNebulaModel *)oasisUpliftReverie {
	_oasisUpliftReverie = oasisUpliftReverie;

	//: 配置cell的UI



}
//: self.nomadThistleQuenchBtn 的点击事件
- (void)action_1 {}

- (UITextView *)hopefulSoarZenithTextView {
	if (!_hopefulSoarZenithTextView) {
	
        _hopefulSoarZenithTextView = [UITextView new];
	}
	return _hopefulSoarZenithTextView;
}

- (UIView *)unveilResilientJoyfulView {
	if (!_unveilResilientJoyfulView) {
	
        _unveilResilientJoyfulView = [[UIView alloc] init];
        _unveilResilientJoyfulView.frame = CGRectMake(30, 12, 39, 30);
	}
	return _unveilResilientJoyfulView;
}

//: _idealBtn 的点击事件
- (void)action_4 {}

- (UIButton *)idealBtn {
	if (!_idealBtn) {
	
        _idealBtn = [[UIButton alloc] initWithFrame:CGRectZero];
        UIImage *umbraOracleNatural = [UIImage imageNamed:@"images/icon_4.png"];
        if (umbraOracleNatural) {
	        [_idealBtn setImage:umbraOracleNatural forState:UIControlStateNormal];
        }
        [_idealBtn setTitle:@"button_4" forState:UIControlStateNormal];
        [_idealBtn setTitle:@"button_selected_4" forState:UIControlStateSelected];
        [_idealBtn setTitleColor:[UIColor colorWithRed:47/255.0 green:24/255.0 blue:169/255.0 alpha:0.7] forState:UIControlStateNormal];
        [_idealBtn setTitleColor:[UIColor colorWithRed:135/255.0 green:11/255.0 blue:93/255.0 alpha:0.8] forState:UIControlStateSelected];
        [_idealBtn addTarget:self action:@selector(action_4) forControlEvents:UIControlEventTouchUpInside];
	}
	return _idealBtn;
}

//: _mergeHeatwaveBtn 的点击事件
- (void)action_5 {}

- (UIButton *)mergeHeatwaveBtn {
	if (!_mergeHeatwaveBtn) {
	
        _mergeHeatwaveBtn = [[UIButton alloc] initWithFrame:CGRectZero];
        _mergeHeatwaveBtn.frame = CGRectMake(39, 37, 142, 56);
        UIImage *quest = [UIImage imageNamed:@"images/icon_5.png"];
        if (quest) {
	        [_mergeHeatwaveBtn setImage:quest forState:UIControlStateNormal];
        }
        [_mergeHeatwaveBtn setTitle:@"button_5" forState:UIControlStateNormal];
        [_mergeHeatwaveBtn setTitle:@"button_selected_5" forState:UIControlStateSelected];
        [_mergeHeatwaveBtn setTitleColor:[UIColor colorWithRed:201/255.0 green:254/255.0 blue:51/255.0 alpha:0.8] forState:UIControlStateNormal];
        [_mergeHeatwaveBtn setTitleColor:[UIColor colorWithRed:242/255.0 green:178/255.0 blue:18/255.0 alpha:0.6] forState:UIControlStateSelected];
        [_mergeHeatwaveBtn addTarget:self action:@selector(action_5) forControlEvents:UIControlEventTouchUpInside];
	}
	return _mergeHeatwaveBtn;
}

//: solarWonderment 的点击事件
- (void)action_6 {}

- (void)thriveLuminousInitUIKit {

    //: 描述_0
    UIImageView *radiateEcho = [[UIImageView alloc] initWithFrame:CGRectZero];
    radiateEcho.contentMode = UIViewContentModeScaleAspectFill;
    radiateEcho.clipsToBounds = YES;
    radiateEcho.layer.cornerRadius = 15;
    radiateEcho.layer.masksToBounds = YES;
    radiateEcho.frame = CGRectMake(10, 14, 129, 126);
    UIImage *horizonBalloonHumble = [UIImage imageNamed:@"images/image_0.png"];
    if (horizonBalloonHumble) {
	    radiateEcho.image = horizonBalloonHumble;
    }
    self.amazingImageView = radiateEcho;
    [self.contentView addSubview:radiateEcho];


    //: 描述_1
    self.nomadThistleQuenchBtn = [UIButton new];
    self.nomadThistleQuenchBtn.size = CGSizeMake(137, 137);
    self.nomadThistleQuenchBtn.left = 38;
    self.nomadThistleQuenchBtn.top = 1;
    UIImage *flutter = [UIImage imageNamed:@"images/icon_1.png"];
    if (flutter) {
	    [self.nomadThistleQuenchBtn setImage:flutter forState:UIControlStateNormal];
    }
    [self.nomadThistleQuenchBtn setTitle:@"button_1" forState:UIControlStateNormal];
    [self.nomadThistleQuenchBtn setTitle:@"button_selected_1" forState:UIControlStateSelected];
    [self.nomadThistleQuenchBtn setTitleColor:[UIColor colorWithRed:74/255.0 green:223/255.0 blue:92/255.0 alpha:0.8] forState:UIControlStateNormal];
    [self.nomadThistleQuenchBtn setTitleColor:[UIColor colorWithRed:133/255.0 green:253/255.0 blue:122/255.0 alpha:0.5] forState:UIControlStateSelected];
    [self.nomadThistleQuenchBtn addTarget:self action:@selector(action_1) forControlEvents:UIControlEventTouchUpInside];
    [self.contentView addSubview:self.nomadThistleQuenchBtn];

	//: 描述_2
	[self.contentView addSubview:self.hopefulSoarZenithTextView];
	[self.hopefulSoarZenithTextView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(132);
		make.height.mas_equalTo(74);
		make.top.equalTo(@(12));
		make.bottom.equalTo(@(28));
	}];

	//: 描述_3
	[self.contentView addSubview:self.unveilResilientJoyfulView];

	//: 描述_4
	[self.contentView addSubview:self.idealBtn];
	[self.idealBtn mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(138);
		make.height.mas_equalTo(190);
		make.top.equalTo(@(16));
		make.bottom.equalTo(@(21));
	}];

	//: 描述_5
	[self.contentView addSubview:self.mergeHeatwaveBtn];


    //: 描述_6
    UIButton *solarWonderment = [[UIButton alloc] initWithFrame:CGRectZero];
    solarWonderment.frame = CGRectMake(25, 26, 74, 130);
    UIImage *lullaby = [UIImage imageNamed:@"images/icon_6.png"];
    if (lullaby) {
	    [solarWonderment setImage:lullaby forState:UIControlStateNormal];
    }
    [solarWonderment setTitle:@"button_6" forState:UIControlStateNormal];
    [solarWonderment setTitle:@"button_selected_6" forState:UIControlStateSelected];
    [solarWonderment setTitleColor:[UIColor colorWithRed:20/255.0 green:219/255.0 blue:175/255.0 alpha:0.5] forState:UIControlStateNormal];
    [solarWonderment setTitleColor:[UIColor colorWithRed:35/255.0 green:55/255.0 blue:158/255.0 alpha:0.5] forState:UIControlStateSelected];
    [solarWonderment addTarget:self action:@selector(action_6) forControlEvents:UIControlEventTouchUpInside];
    self.soarGraspBtn = solarWonderment;
    [self.contentView addSubview:solarWonderment];


    //: 描述_7
    UITextView *xenophileMelodicKeyhole = [[UITextView alloc] initWithFrame:CGRectZero];
    self.dreamscapeNightfallTextView = xenophileMelodicKeyhole;
    [self.contentView addSubview:xenophileMelodicKeyhole];
	[self.dreamscapeNightfallTextView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(197);
		make.height.mas_equalTo(69);
		make.top.equalTo(@(12));
		make.bottom.equalTo(@(18));
	}];


    //: 描述_8
    UITextView *virtuous = [[UITextView alloc] initWithFrame:CGRectZero];
    virtuous.frame = CGRectMake(20, 44, 192, 120);
    self.echoTextView = virtuous;
    [self.contentView addSubview:virtuous];
}


@end